package tk.tankpao.blast.core;

import tk.tankpao.blast.core.annotation.Autowired;
import tk.tankpao.blast.core.annotation.Component;

@Component(name="wtt")
public class Wtt {
	
	@Autowired(name="ww")
	private Ww ww;
	
	public void aa(){
		System.out.println("我是1层注入Wtt,你好！");
		ww.ww("Wtt");
	}
	public static void main(String[] args) {
		Wtt s = new Wtt();
		String className = s.getClass().getName();
		String packageName = className.substring(0, className.lastIndexOf("."));
		System.out.println(className.replace(packageName+".", ""));
	}
}
